<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/1/11
  Time: 16:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="webroot" value="${pageContext.request.contextPath}"/>
<c:choose>
    <c:when test="${'管理员' eq sessionScope.user.usergroup}">
        <div>
            <el-row class="tac">
                <el-menu
                        default-active="2"
                        class="el-menu-vertical-demo"
                        @open="handleOpen"
                        @close="handleClose">
                    <el-submenu index="1">
                        <template slot="title">
                            <i class="el-icon-location"></i>
                            <span>员工信息管理</span>
                        </template>
                        <el-menu-item-group>
                            <el-menu-item index="1-1"><a href="${webroot}/man_manage/man_add.jsp">员工基本信息的录入</a>
                            </el-menu-item>
                            <el-menu-item index="1-2"><a href="${webroot}/man_manage/man_uphold.jsp">员工基本信息的维护</a>
                            </el-menu-item>
                        </el-menu-item-group>
                    </el-submenu>
                    <el-submenu index="2">
                        <template slot="title">
                            <i class="el-icon-location"></i>
                            <span>商品信息管理</span>
                        </template>
                        <el-menu-item-group>
                            <el-menu-item index="2-1"><a href="${webroot}/Pformation/category.do">商品类别维护</a>
                            </el-menu-item>
                            <el-menu-item index="2-2"><a href="${webroot}/Pformation/mation.do">商品信息的维护</a>
                            </el-menu-item>
                        </el-menu-item-group>
                    </el-submenu>
                    <el-submenu index="3">
                        <template slot="title">
                            <i class="el-icon-location"></i>
                            <span>商品采购管理</span>
                        </template>
                        <el-menu-item-group>
                            <el-menu-item index="3-1"><a href="${webroot}/goGroup.do?action=进货">进货信息的登记录入</a>
                            </el-menu-item>
                            <el-menu-item index="3-2"><a
                                    href="${webroot}/cg_manage/cg_find_jinhuo.jsp">查询进货信息</a></el-menu-item>
                        </el-menu-item-group>
                        <el-menu-item index="3-3"><a href="${webroot}/goGroup.do?action=退货">退货信息的登记录入</a></el-menu-item>
                        </el-menu-item>
                        <el-menu-item index="3-4"><a
                                href="${webroot}/cg_manage/cg_find_tuihuo.jsp">查询退货信息</a></el-menu-item>
                        </el-menu-item-group>
                    </el-submenu>
                    <el-submenu index="4">
                        <template slot="title">
                            <i class="el-icon-location"></i>
                            <span>商品销售管理</span>
                        </template>
                        <el-menu-item-group>
                            <el-menu-item index="4-1"><a href="${webroot}/PSales/salas.jsp">商品销售查询</a>
                            </el-menu-item>
                            <el-menu-item index="4-2"><a href="${webroot}/PSales/return.jsp">顾客退货登记录入</a></el-menu-item>
                            <el-menu-item index="4-3"><a href="${webroot}/PSales/returall.jsp">顾客退货查询</a>
                            </el-menu-item>
                        </el-menu-item-group>
                    </el-submenu>
                    <el-submenu index="5">
                        <template slot="title">
                            <i class="el-icon-location"></i>
                            <span>库存管理模块</span>
                        </template>
                        <el-menu-item-group>
                            <el-menu-item index="5-1"><a href="${webroot}/stock/stockpo.do">库存报警</a></el-menu-item>
                            <el-menu-item index="5-2"><a href="${webroot}/stock/stockall.jsp">多条件进行商品库存查询</a></el-menu-item>
                        </el-menu-item-group>
                    </el-submenu>
                    <el-submenu index="6">
                        <template slot="title">
                            <i class="el-icon-location"></i>
                            <span>数据分析</span>
                        </template>
                        <el-menu-item-group>
                            <el-menu-item index="7-1">员工销售排行</el-menu-item>
                            <el-menu-item index="7-2">盈利分析</el-menu-item>
                        </el-menu-item-group>
                    </el-submenu>
                    <el-submenu index="7">
                        <template slot="title">
                            <i class="el-icon-location"></i>
                            <span>供应商管理</span>
                        </template>
                        <el-menu-item-group>
                            <el-menu-item index="8-1"><a href="${webroot}/system/sup.do">供应商管理</a></el-menu-item>
                            <el-menu-item index="8-2"><a href="${webroot}/system/uppass.jsp">修改密码</a></el-menu-item>
                        </el-menu-item-group>
                    </el-submenu>
                    </el-submenu>
                    <el-submenu index="8">
                        <template slot="title">
                            <i class="el-icon-location"></i>
                            <span>关于</span>
                        </template>
                        <el-menu-item-group>
                            <el-menu-item index="9-1"><a href="${webroot}/loginout.do">退出</a></el-menu-item>
                        </el-menu-item-group>
                    </el-submenu>
                </el-menu>
                </el-col>
            </el-row>
        </div>
    </c:when>
    <c:when test="${'员工' eq sessionScope.user.usergroup}">
        <el-row class="tac">
            <el-menu
                    default-active="2"
                    class="el-menu-vertical-demo"
                    @open="handleOpen"
                    @close="handleClose">
                <el-submenu index="1">
                    <template slot="title">
                        <i class="el-icon-location"></i>
                        <span>商品信息管理理</span>
                    </template>
                    <el-menu-item-group>
                        <el-menu-item index="1-1"><a href="${webroot}/stock/stockall.jsp">多条件进行商品信息查询</a></el-menu-item>
                    </el-menu-item-group>
                </el-submenu>
                <el-submenu index="2">
                    <template slot="title">
                        <i class="el-icon-location"></i>
                        <span>商品销售管理</span>
                    </template>
                    <el-menu-item-group>
                        <el-menu-item index="2-1">商品销售信息的添加</el-menu-item>
                        <el-menu-item index="2-2">个人销售业绩的查询</el-menu-item>
                    </el-menu-item-group>
                </el-submenu>
                <el-submenu index="3">
                    <template slot="title">
                        <i class="el-icon-location"></i>
                        <span>库存管理</span>
                    </template>
                    <el-menu-item-group>
                        <el-menu-item index="3-1"><a href="${webroot}/stock/stockpo.do">库存报警</a></el-menu-item>
                        <el-menu-item index="3-2"><a href="${webroot}/stock/stockall.jsp">多条件进行商品库存查询</a></el-menu-item>
                    </el-menu-item-group>
                </el-submenu>
                <el-submenu index="4">
                    <template slot="title">
                        <i class="el-icon-location"></i>
                        <span>系统管理</span>
                    </template>
                    <el-menu-item-group>
                        <el-menu-item index="4-1"><a href="${webroot}/system/uppass.jsp">修改密码</a></el-menu-item>
                    </el-menu-item-group>
                </el-submenu>
                <el-submenu index="5">
                    <template slot="title">
                        <i class="el-icon-location"></i>
                        <span>关于</span>
                    </template>
                    <el-menu-item-group>
                        <el-menu-item index="5-1"><a href="${webroot}/loginout.do">退出</a></el-menu-item>
                    </el-menu-item-group>
                </el-submenu>
            </el-menu>
            </el-col>
        </el-row>
    </c:when>
    <c:otherwise>
        <c:redirect url="${webroot}/loginout.do"></c:redirect>
    </c:otherwise>
</c:choose>
